package com.blog.controller;

import com.blog.feignclients.OrdersClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/users")
public class UsersController {


   @Resource(name = "com.blog.feignclients.OrdersClient")
   private OrdersClient ordersClient;

    @GetMapping
    public String  invokeDemo1(){
        String msg = ordersClient.demo8(-13);//必定报错

        System.out.println(msg);
        return msg;
    }
}
